import React from "react";
import PropTypes from 'prop-types';
export default class Home extends React.Component{
  static propTypes = {
    clickForm: PropTypes.func.isRequired
  }
  render(){
    return (<div onClick={this.props.clickForm}>name:我是home组件</div>);
  }
}

// export default function Home({ name }) {
//   return <h1>Hello, {name}</h1>;
// }